package com.ruoyi.config;

import com.baidubce.qianfan.Qianfan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QianFanConfig {

    @Value("${qianfan.api-key}")
    private String QIANFAN_AK;

    @Value("${qianfan.secret-key}")
    private String QIANFAN_SK;

    @Bean("QianFan")
    public Qianfan qianfan(){
        return new Qianfan(QIANFAN_AK,QIANFAN_SK);
    }


}
